package com.linc.ds.stack;

import com.linc.ds.MyLinkedList;

public class Stack<E> extends MyLinkedList<E> {

  public Stack() {
    super();
  }

  public E pop() {
    return delete(0);
  }

  public void push(E e) {
    insertAtHead(e);
  }

  public E peep() {
    return getData(0);
  }

  @Override
  public Boolean isEmpty() {
    return super.isEmpty();
  }
}
